package com.sky.service;

import com.sky.dto.*;
import com.sky.result.PageResult;
import com.sky.vo.OrderPaymentVO;
import com.sky.vo.OrderStatisticsVO;
import com.sky.vo.OrderSubmitVO;
import com.sky.vo.OrderVO;

public interface OrderService {
    OrderSubmitVO submitOrder(OrdersSubmitDTO ordersSubmitDTO);

    OrderPaymentVO payment(OrdersPaymentDTO ordersPaymentDTO);

    /**
     * 支付成功，修改订单状态
     * @param outTradeNo
     */
    void paySuccess(String outTradeNo);


    void repetition(Long id);


    PageResult pageQuery4User(int page, int pageSize, Integer status);

    void cancel(Long id) throws Exception;

    OrderVO getById(Long id);

    void AminCancel(OrdersCancelDTO ordersCancelDTO) throws Exception;

    OrderStatisticsVO statistics();

    PageResult pageQuery4Admin(OrdersPageQueryDTO ordersPageQueryDTO);

    void deleteById(OrdersRejectionDTO ordersRejectionDTO) throws Exception;

    void confirm(OrdersConfirmDTO ordersConfirmDTO);

    void delivery(Long id);

    void complete(Long id);

    void reminder(Long id);
}
